<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        *{
            padding: 0;
            margin: 0;
        }
        html,body{
            height: 100%;
            width: 100%;
            background-color: pink;
        }
        body{
            display: flex;
            justify-content: center;
            align-items: center;
        }
        .heart{
            opacity: 1;
           width: 200px;
           height: 200px;
           background-color: red;
           position: relative;
           transform: rotate(45deg);
           animation: heartbit 1s alternate infinite;
           box-shadow: 0px 0px 16px red;
        }
        .heart::before{
           content: "";
           width: 200px;
           height: 100px;
           background-color: red;
           position: absolute;
           top: -99px;
             box-shadow: 0px 0px 16px red;
           border-radius: 100px 100px 0 0;
        }
        .heart::after{
            content: "";
            width: 100px;
            height: 200px;
            background-color:red;
            position: absolute;
            left: -99px;
  box-shadow: 0px 0px 16px red;
            border-radius: 100px 0 0 100px;
        }
        @keyframes heartbit{
            0%{
                transform: rotate(45deg) scale(0.3);
            }
            100%{
                transform: rotate(45deg) scale(0.5);
            }
        }
        #ll{
            border-bottom: 4px solid gray;
            width: 56%;
            position: absolute;
            left: -50px;
            top: 180px;
            transform: rotate(28deg);
             box-shadow: 0px 15px 25px ;
        }
        #l{
             box-shadow: 0px 15px 25px ;
            width: 56%;
            position: absolute;
            top: 180px;
            right: -50px;
            transform: rotate(-28deg);
            border-bottom: 4px solid gray;
        }
    </style>
</head>
<body>
        <div id="ll"></div>
        <div id="l"></div>
         <div class="heart"></div>
    <script>
        var heart = document.getElementsByClassName('heart')[0];
        heart.addEventListener('click',function(){
            this.style.opacity-1;
        })
    </script>
</body>
</html>